package dao.pojo;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * IfwDeviceAuzInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ifw_device_auz_info", catalog = "fw")
public class IfwDeviceAuzInfo extends BasePojo implements java.io.Serializable {

	// Fields

	private Integer deviceAuzIndex;
	private String sn;
	private String model;
	private Integer hostMax;
	private Integer acMax;
	private String rechargeLast;
	private Long timeLeft;
	private String activeLast;
	private String ip;
	private Integer cpu;
	private Integer mem;
	private Integer online;
	private Integer tx;
	private Integer rx;
	private String expireTime;
	private String sysVer;
	private String wanIp1;
	private String wanIp2;
	private String wanIp3;
	private Integer port;
	private Integer host_allowed;
	private Integer ac_allowed;
	
	@Override
	public Object getEntityId() {
		// TODO Auto-generated method stub
		return deviceAuzIndex;
	}
	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "device_auz_index", unique = true, nullable = false)
	public Integer getDeviceAuzIndex() {
		return this.deviceAuzIndex;
	}

	public void setDeviceAuzIndex(Integer deviceAuzIndex) {
		this.deviceAuzIndex = deviceAuzIndex;
	}

	@Column(name = "sn", nullable = false, length = 32)
	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	@Column(name = "model", nullable = false, length = 16)
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Column(name = "host_max", nullable = false)
	public Integer getHostMax() {
		return this.hostMax;
	}

	public void setHostMax(Integer hostMax) {
		this.hostMax = hostMax;
	}

	@Column(name = "ac_max", nullable = false)
	public Integer getAcMax() {
		return this.acMax;
	}

	public void setAcMax(Integer acMax) {
		this.acMax = acMax;
	}

	@Column(name = "recharge_last", nullable = false, length = 19)
	public String getRechargeLast() {
		return this.rechargeLast;
	}

	public void setRechargeLast(String rechargeLast) {
		this.rechargeLast = rechargeLast;
	}

	@Column(name = "time_left", nullable = false)
	public Long getTimeLeft() {
		return this.timeLeft;
	}

	public void setTimeLeft(Long timeLeft) {
		this.timeLeft = timeLeft;
	}

	@Column(name = "active_last", nullable = false, length = 19)
	public String getActiveLast() {
		return this.activeLast;
	}

	public void setActiveLast(String activeLast) {
		this.activeLast = activeLast;
	}

	@Column(name = "ip", nullable = false, length = 32)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "cpu", nullable = false)
	public Integer getCpu() {
		return this.cpu;
	}

	public void setCpu(Integer cpu) {
		this.cpu = cpu;
	}

	@Column(name = "mem", nullable = false)
	public Integer getMem() {
		return this.mem;
	}

	public void setMem(Integer mem) {
		this.mem = mem;
	}

	@Column(name = "online", nullable = false)
	public Integer getOnline() {
		return this.online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}

	@Column(name = "tx", nullable = false)
	public Integer getTx() {
		return this.tx;
	}

	public void setTx(Integer tx) {
		this.tx = tx;
	}

	@Column(name = "rx", nullable = false)
	public Integer getRx() {
		return this.rx;
	}

	public void setRx(Integer rx) {
		this.rx = rx;
	}

	@Column(name = "expire_time", nullable = false, length = 14)
	public String getExpireTime() {
		return this.expireTime;
	}

	public void setExpireTime(String expireTime) {
		this.expireTime = expireTime;
	}

	@Column(name = "sys_ver")
	public String getSysVer() {
		return sysVer;
	}
	
	public void setSysVer(String sysVer) {
		this.sysVer = sysVer;
	}
	@Column(name = "wanIp1")
	public String getWanIp1() {
		return wanIp1;
	}
	public void setWanIp1(String wanIp1) {
		this.wanIp1 = wanIp1;
	}
	@Column(name = "wanIp2")
	public String getWanIp2() {
		return wanIp2;
	}
	public void setWanIp2(String wanIp2) {
		this.wanIp2 = wanIp2;
	}
	@Column(name = "wanIp3")
	public String getWanIp3() {
		return wanIp3;
	}
	public void setWanIp3(String wanIp3) {
		this.wanIp3 = wanIp3;
	}
	@Column(name = "port")
	public Integer getPort() {
		return port;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
	@Column(name = "host_allowed")
	public Integer getHost_allowed() {
		return host_allowed;
	}
	
	public void setHost_allowed(Integer hostAllowed) {
		host_allowed = hostAllowed;
	}
	@Column(name = "ac_allowed")
	public Integer getAc_allowed() {
		return ac_allowed;
	}
	
	public void setAc_allowed(Integer acAllowed) {
		ac_allowed = acAllowed;
	}

}